<template>
  <page-main class="page-checkIn-index">
    <div class="p-t-15"></div>
    <van-cell-group inset :border="false" class="patient-card"  @click="$util.gotoPage('/patient/select', {from: 'report'})">
      <van-cell :label="cust.idNo" :border="false">
        <div class="title" slot="title">
          <b>{{cust.custName}}</b>
          <van-tag round class="tag-blue-light m-l-5">{{$util.setName(cust.relationType, init_data.relationType_list)}}</van-tag>
        </div>
        <div class="value">
          <p class="icon"><van-icon name="sort" /></p>
          <p>切换就诊人</p>
        </div>
      </van-cell>
    </van-cell-group>
    <div class="p-t-5"></div>
    <van-cell-group class="van-cell-left" size="large" :border="false">
      <van-cell title="就诊科室" value="xxxx" />
      <van-cell title="医生" value="xxxx" />
      <van-cell title="我的序号" value="A08" />
    </van-cell-group>
    <div class="code">
      <div class="content">
        <div class="inner">
          <span>当前就诊序号</span>
          <h3>A05</h3>
        </div>
      </div>
    </div>
    <div class="p-a-15">
      <van-button type="info" block>刷新</van-button>
    </div>
  </page-main>
</template>

<script>
export default {
  data(){
    return{
      cust:{
        custName: '张三',
        relationType:'本人',
        idNo:'xxx',
      },
      info:{
        status:0,// 0未开始，1可报到
      },
      init_data:{},
    }
  },
  async created(){
    await this.getInitData();
    let cust = localStorage.getItem('currentPatient');
    if(cust){
      this.cust = JSON.parse(cust);
    }
  },
  methods:{
    async getInitData(){
      this.init_data.relationType_list = await this.$util.getDictList('relation_type');
    },
  }

}
</script>

<style>

</style>